package com.example.bitmapload;


import android.app.Activity;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ImageView;

public class MainActivity extends Activity {

	private ImageView imageView;
	String url = "http://img4q.duitang.com/uploads/item/201405/16/20140516000627_x5eeu.jpeg";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		imageView = (ImageView)findViewById(R.id.imageView);
		
		ImageLoad.getInstance().loadIv(url, imageView, new ImageLoad.ivCallback() {

			@Override
			public void getImage(BitmapDrawable imageDrawable, String imageUrl) {
				imageView.setImageDrawable(imageDrawable);
			}

			@Override
			public void setImage(BitmapDrawable imageDrawable, String imageUrl) {
				
			}

        });
	}

	
}
